//
//  LoginSecondView.swift
//  KoiAccounting
//
//  Created by 纪洪文 on 18.03.25.
//

import SwiftUI

struct LoginSecondView: View {
    
    @State var viewType:LoginViewType = .phone
    
    var body: some View {
        Group {
            switch(viewType) {
            case .phone:
                LoginPhoneView(switchLoginView:{
                    viewType = .password
                })
            case .password:
                LoginPasswordView(switchLoginView:{
                    viewType = .phone
                })
            }
        }
    }
}

enum LoginViewType {
    case phone
    case password
}

#Preview {
    LoginSecondView()
}
